﻿<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="./js/jquery.js"></script>
<script type="text/javascript">
$(function(){
	$("li").not("li ul li").click(function(){
		$(this).children("ul").toggle();
	});
});
</script>
<title>可折叠菜单</title>

</head>
<body>
	<div id="header">
		<ul>
			<li>
				首页
				<ul>
					<li>首页1</li>
					<li>首页2</li>
					<li>首页3</li>
				</ul>
			</li>
			<li>
				日志
				<ul>
					<li>日志1</li>
					<li>日志2</li>
					<li>日志3</li>
				</ul>
			</li>
			<li>
				好友
				<ul>
					<li>好友1</li>
					<li>好友2</li>
					<li>好友3</li>
				</ul>
			</li>
		</ul>
	</div>
</body>
</html>